home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48hor1
/
busy.doc
< prev
next >
Wrap
Text File
|
1995-03-31
|
2KB
|
64 lines
Author: [Jan Brittenson]
Date: Sat Jun 29 1991 14:52
Lines: 58
In a posting of [27 Jun 91 11:46:22 GMT]
druegeme@hpwad.WAD.HP.COM (#Daniel Ruegemer) writes:
> Is it also possible to turn off the 'busy'- Announciator ?
I'm not sure whether you can from a SYSEVAL, but you can from ML:
42333 turns it on
42359 turns it off
Or, in a code object (I hope the opcodes are correct; they are
entered from memory, and are intended only for illustration):
To turn it on:
ccd20 ; code object
a1000 ; code size, including these 5 nybbles (5+3*7)
8fb9760 call.a 679b ; stash away RPL registers
8f33324 call.a 42333 ; turn on annunciator
8d34150 jump.a 5143 ; reload RPL registers, continue thread
To turn it off:
ccd20 ; code object
a1000 ; same size as above
8fb9760 call.a 679b ; stash away RPL registers
8f95324 call.a 42359 ; turn annunciator off
8d34150 jump.a 5143 ; reload RPL registers, continue thread
Actually, I just tried both routines, and they work just fine. Enter the hex
data and use Rick's ASCI-> to convert to a code object. To simplify the
typing, enter the on routine, convert it, recover it with LAST ARG, and modify
just the sequence "333" to "953" to obtain the hex string for the off routine.
Both 42333 and 42359 update the flag word at 706c3 as well as 10b to toggle the
actual display.
Of course, if these are available via SYSEVALs, then you're saved some typing.
Save the above two routines in BON and BOFF, then run the following program:
<< DO BON .5 WAIT BOFF .5 WAIT
UNTIL 0
END
>>
It will blink the busy annunciator.
Have fun.
-- Jan Brittenson
bson@ai.mit.edu
[Note: The 'BUSY' file on this disk is an HP 48 directory containing Jan's
programs described above: BON, BOFF, and his DEMO. -jkh-]